package com.example.day07_zhongji.presenter;

import com.example.day07_zhongji.base.BasePresenter;
import com.example.day07_zhongji.bean.WorkBean;
import com.example.day07_zhongji.model.WorkCallBack;
import com.example.day07_zhongji.model.WorkModel;
import com.example.day07_zhongji.view.WorkView;

public class WorkPresenter extends BasePresenter<WorkView> implements WorkCallBack {
    private WorkModel model;
    @Override
    protected void initModel() {
        this.model=new WorkModel();
        addModel(model);
    }
    public void getdata(){
        model.workData(this);
    }
    @Override
    public void onSuccess(WorkBean data) {
        mview.onSuccess(data);
    }

    @Override
    public void onFali(String error) {
        mview.onFali(error);
    }
}
